package com.wdc.simple.day06;

import java.util.concurrent.Flow;
import java.util.function.Consumer;

public class Test {
    public static void main(String[] args) {
        //Consumer<test> printer = (s) -> System.out.println(s);
        Consumer<String> print = System.out::println;
        Consumer<String> print2 = s ->             System.out.println(s);




        print2.accept("wdc");

        print.accept("hello consumer ");

    }
}
